#ifndef RIGHTFORMITEM_H
#define RIGHTFORMITEM_H

#include <QWidget>

namespace Ui {
class rightFormitem;
}

class rightFormitem : public QWidget
{
    Q_OBJECT
public:
    explicit rightFormitem(bool isLike = false, QWidget *parent = nullptr);
    ~rightFormitem();

    void enterEvent(QEvent* event);
    void leaveEvent(QEvent* event);
    void setNameitem(const QString name);
    void setAuthoritem(const QString author);
    void setAlbumitem(const QString album);
    void setLiking(bool isLike);
    void toggleLikeState();
signals:
    void setisLike(bool isLike);

private:
    Ui::rightFormitem *ui;
    bool isLike;
};

#endif // RIGHTFORMITEM_H
